package com.idmd.controller;

import com.idmd.service.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserServiceContorller {
    @Test
    public void serviceControllDemo () {
        ApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");

        UserService service = (UserService)app.getBean("userService");

        service.getInfo();
    }
}
